﻿<UserControl x:Class="UWCSE.CompleterVSPackage.QueryControl"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        mc:Ignorable="d"
        d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="4*" />
        </Grid.RowDefinitions>
        
        <TextBox Grid.Row="0" HorizontalAlignment="Stretch" Name="filterTextBox" VerticalAlignment="Stretch" TextChanged="filterTextBox_TextChanged" />
        <Label Content="Type: " Grid.Row="1"  HorizontalAlignment="Left" Name="typeLabel" VerticalAlignment="Stretch" />
        <StackPanel Grid.Row="1" HorizontalAlignment="Right" Name="buttonsStackPanel" VerticalAlignment="Stretch" Orientation="Horizontal">
            <Label Content="Query: " HorizontalAlignment="Right" Name="queryColonLabel" VerticalAlignment="Stretch" />
            <Label Content="" HorizontalAlignment="Right" Name="queryLabel" VerticalAlignment="Stretch" />
            <Button Content="Change" HorizontalAlignment="Right" Name="queryButton" VerticalAlignment="Stretch" Click="queryButton_Click" />
        </StackPanel>
        <Button Grid.Row="0" Content="Clear" HorizontalAlignment="Right" Name="clearButton" VerticalAlignment="Stretch" Click="clearButton_Click" />
        <ListBox Grid.Row="2" HorizontalAlignment="Stretch" Name="resultsListBox" VerticalAlignment="Stretch" PreviewTextInput="resultsListBox_PreviewTextInput" KeyDown="resultsListBox_KeyDown" TextInput="resultsListBox_TextInput" KeyUp="resultsListBox_KeyUp" MouseDoubleClick="resultsListBox_MouseDoubleClick" ScrollViewer.ScrollChanged="resultsList_ScrollChanged" ScrollViewer.VerticalScrollBarVisibility="Visible"/>
    </Grid>
</UserControl>
